"use strict";
cc._RF.push(module, 'a35a434IS1IdL/5Gmk56r1S', 'Prop');
// scripts/Prop.js

"use strict";

var t = require;
var e = module;
var o = exports;

var _i,
    n = void 0 && (void 0).__extends || (_i = function i(t, e) {
  return (_i = Object.setPrototypeOf || {
    __proto__: []
  } instanceof Array && function (t, e) {
    t.__proto__ = e;
  } || function (t, e) {
    for (var o in e) {
      Object.prototype.hasOwnProperty.call(e, o) && (t[o] = e[o]);
    }
  })(t, e);
}, function (t, e) {
  function o() {
    this.constructor = t;
  }

  _i(t, e), t.prototype = null === e ? Object.create(e) : (o.prototype = e.prototype, new o());
}),
    a = void 0 && (void 0).__decorate || function (t, e, o, i) {
  var n,
      a = arguments.length,
      r = a < 3 ? e : null === i ? i = Object.getOwnPropertyDescriptor(e, o) : i;
  if ("object" == typeof Reflect && "function" == typeof Reflect.decorate) r = Reflect.decorate(t, e, o, i);else for (var s = t.length - 1; s >= 0; s--) {
    (n = t[s]) && (r = (a < 3 ? n(r) : a > 3 ? n(e, o, r) : n(e, o)) || r);
  }
  return a > 3 && r && Object.defineProperty(e, o, r), r;
};

Object.defineProperty(o, "__esModule", {
  value: !0
});

var r = t("GlobalUserData"),
    s = t("Util"),
    l = t("Global"),
    c = t("PropsView"),
    d = cc._decorator,
    h = d.ccclass,
    p = d.property,
    u = function (t) {
  function e() {
    var e = null !== t && t.apply(this, arguments) || this;
    return e.type = l.Props.Unknown, e.propsView = null, e;
  }

  return n(e, t), e.prototype.start = function () {
    this.type == l.Props.AttackSpeed && (r["default"].videoTab = l.VideoTab.dim21), this.type == l.Props.Bubble && (r["default"].videoTab = l.VideoTab.dim22), this.type == l.Props.Shield && (r["default"].videoTab = l.VideoTab.dim23), s.Util.videoExposure(r["default"].videoTab);
  }, e.prototype.onBtnGetProp = function () {
    var t = this;
    this.type == l.Props.AttackSpeed && (r["default"].videoTab = l.VideoTab.dim21), this.type == l.Props.Bubble && (r["default"].videoTab = l.VideoTab.dim22), this.type == l.Props.Shield && (r["default"].videoTab = l.VideoTab.dim23), s.Util.showRewardVideo(function () {
      r["default"].propType = t.type, t.propsView.onClose();
    });
  }, a([p({
    type: cc.Enum(l.Props),
    tooltip: "道具类型"
  })], e.prototype, "type", void 0), a([p(c["default"])], e.prototype, "propsView", void 0), a([h], e);
}(cc.Component);

o["default"] = u;

cc._RF.pop();